package com.niodata.dp.monitor.sharelib.entity.hbase;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by ndp on 17-12-19.
 */
public class RegionServerInfos implements Serializable {

  private Map<String, RegionServerInfo> reginServerInfoMap;

  public RegionServerInfo getReginServerInfo(String name) {
    return reginServerInfoMap.get(name);
  }

  public Map<String, RegionServerInfo> getReginServerInfoMap() {
    return reginServerInfoMap;
  }

  public void setReginServerInfoMap(
        Map<String, RegionServerInfo> reginServerInfoMap) {
    this.reginServerInfoMap = reginServerInfoMap;
  }

  public List<RegionServerInfo> getRegionServerInfoList() {
    return new ArrayList<>(reginServerInfoMap.values());
  }
}
